<template>
  <h1>我是首页</h1>
</template>
<script setup lang="ts">
import userStore from '../store/index'
import { getCaptcha } from '../api/login';
import { onMounted } from 'vue';
let user = userStore()
console.log(user.token)
onMounted(()=>{
  let key = new Date().getTime().toString()
  getCaptcha({key}).then(res => {
    console.log(res)
  })
})
</script>